package com.prs.crm.service.stock.impl;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;

import com.prs.crm.dao.stock.SupplierDao;
import com.prs.crm.domain.stock.Supplier;
import com.prs.crm.service.impl.BaseServiceImpl;
import com.prs.crm.service.stock.SupplierService;

public class SupplierServiceImpl extends BaseServiceImpl<Supplier, SupplierDao> implements SupplierService {

	@Override
	public Collection<Supplier> findByIds(Serializable[] ids) {
		// TODO Auto-generated method stub
		Collection<Supplier> suppliers = new ArrayList<Supplier>();
		for(Serializable id : ids){
			suppliers.add(this.getDao().get(id));
		}
		return suppliers;
	}

	

}
